
import Cookies from 'js-cookie'
// export function getToken() {//获取
//     return Cookies.get(TokenKey);
// }
// export function setToken(token) {//存储
//     Cookies.set(TokenKey, token);
// }
// export function removeToken() {//删除
//     Cookies.remove(TokenKey);
// }
export const getToken = () => {
  return Cookies.get("token")
}
export const setToken = (token) => {
  return Cookies.set(Cookies.get("token"), token)
}

export const removeToken = () => {
  return Cookies.remove("token")
}

